package com.ys.web.entity;
// Generated 2017-3-7 9:21:28 by Hibernate Tools 4.0.0

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 四象限
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "quadrant", catalog = "ysanalyze")
public class Quadrant implements java.io.Serializable {

	private Integer id;
	/**行业id*/
	private String industryId;
	/**象限名称*/
	private String quadrantName;
	/**象限描述*/
	private String description;
	/**象限标志（1,2,3,4）*/
	private String tag;
	/**最小点击转化比（总转化／点击次数）*/
	private Double clickRateMin;
	/**最大点击转化比（总转化／点击次数）*/
	private Double clickRateMax;
	/**最小消费转化比（总转化／消费金额）*/
	private Double consumeRateMin;
	/**最大消费转化比（总转化／消费金额）*/
	private Double consumeRateMax;
	/**备注*/
	private String remark;

	public Quadrant() {
	}

	public Quadrant(String quadrantName, String industryId, String description, double clickRateMin, double clickRateMax,
			Double consumeRateMin, Double consumeRateMax, String tag, String remark) {
		this.industryId = industryId;
		this.quadrantName = quadrantName;
		this.description = description;
		this.clickRateMin = clickRateMin;
		this.clickRateMax = clickRateMax;
		this.consumeRateMin = consumeRateMin;
		this.consumeRateMax = consumeRateMax;
		this.tag = tag;
		this.remark = remark;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "quadrant_name", length = 50)
	public String getQuadrantName() {
		return this.quadrantName;
	}

	public void setQuadrantName(String quadrantName) {
		this.quadrantName = quadrantName;
	}

	@Column(name = "description", length = 200)
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Column(name = "click_rate_min", precision = 32, scale = 3)
	public Double getClickRateMin() {
		return this.clickRateMin;
	}

	public void setClickRateMin(Double clickRateMin) {
		this.clickRateMin = clickRateMin;
	}

	@Column(name = "click_rate_max", precision = 32, scale = 3)
	public Double getClickRateMax() {
		return this.clickRateMax;
	}

	public void setClickRateMax(Double clickRateMax) {
		this.clickRateMax = clickRateMax;
	}

	@Column(name = "consume_rate_min", nullable = false, precision = 32, scale = 3)
	public Double getConsumeRateMin() {
		return this.consumeRateMin;
	}

	public void setConsumeRateMin(Double consumeRateMin) {
		this.consumeRateMin = consumeRateMin;
	}

	@Column(name = "consume_rate_max", nullable = false, precision = 32, scale = 3)
	public Double getConsumeRateMax() {
		return this.consumeRateMax;
	}

	public void setConsumeRateMax(Double consumeRateMax) {
		this.consumeRateMax = consumeRateMax;
	}

	//nullable = false, 
	@Column(name = "tag", length = 50)
	public String getTag() {
		return tag;
	}

	public void setTag(String tag) {
		this.tag = tag;
	}

	@Column(name = "remark", length = 200)
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column(name = "industry_id", nullable = false, length = 50)
	public String getIndustryId() {
		return industryId;
	}

	public void setIndustryId(String industryId) {
		this.industryId = industryId;
	}



}
